package com.demo.study.behavior.d02_command.controller;

import com.demo.study.behavior.d02_command.controller.light.LightOffCommand;
import com.demo.study.behavior.d02_command.controller.light.LightOnCommand;
import com.demo.study.behavior.d02_command.controller.light.LightReceiver;
import com.demo.study.behavior.d02_command.controller.tv.TvOffCommand;
import com.demo.study.behavior.d02_command.controller.tv.TvOnCommand;
import com.demo.study.behavior.d02_command.controller.tv.TvReceiver;

/**
 * @author Baymax
 * @since 2022/3/25
 */
public class Client {
    public static void main(String[] args) {
        RemoteController remoteController = RemoteController.intiRemoteController();

        remoteController.onButton(0);
        remoteController.undoButton();

        remoteController.offButton(1);
        remoteController.undoButton();
    }
}
